home *** CD-ROM | disk | FTP | other *** search
-
-
-
- AAAALLLLLLLLOOOOCCCCAAAA((((3333CCCC)))) AAAALLLLLLLLOOOOCCCCAAAA((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- alloca - allocate dynamic space
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<aaaallllllllooooccccaaaa....hhhh>>>>
-
- vvvvooooiiiidddd ****aaaallllllllooooccccaaaa ((((uuuunnnnssssiiiiggggnnnneeeedddd ssssiiiizzzzeeee))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _a_l_l_o_c_a returns a pointer to _s_i_z_e bytes of uninitialized local stack
- space. Since the space is allocated using a built-in compiler function,
- the allocation is quite fast. If zero is passed as _s_i_z_e, _a_l_l_o_c_a returns
- a valid pointer (unlike some versions of _m_a_l_l_o_c, which consider a zero
- size to be an error).
-
- The #_i_n_c_l_u_d_e <_a_l_l_o_c_a._h> is required.
-
- Space allocated when a function _f_o_o calls _a_l_l_o_c_a is freed automatically
- when _f_o_o returns.
-
- It is an error to call _f_r_e_e with a pointer returned by _a_l_l_o_c_a.
-
- Not all environments have _a_l_l_o_c_a in their libraries, so code using it is
- not necessarily portable. Reasonably portable public domain versions of
- this function are available from various sources on the Internet and the
- World Wide Web.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- malloc(3), calloc(3), free(3), /usr/include/alloca.h
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- In this implementation _a_l_l_o_c_a cannot fail (though if _s_i_z_e makes the
- process too large IRIX may kill the process). Since _a_l_l_o_c_a always
- returns a valid pointer, no diagnostics are possible. Portability may be
- enhanced if the function calling _a_l_l_o_c_a tests for a return value of 0 and
- handles 0 as an error.
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- Do not call _a_l_l_o_c_a as an argument to another function, as in
- foo(alloca(20));. _I_n_s_t_e_a_d _u_s_e, _f_o_r _e_x_a_m_p_l_e, _c_p = _a_l_l_o_c_a(_2_0); _f_o_o(_c_p);.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-